﻿using System;
using System.Collections.Generic;

/*
 * The reason why this file was created is the 
 * http://stackoverflow.com/questions/299441/constructor-not-showing-up-in-my-wcf-client-serialization-problem
 */
namespace TeamTasker.Client.Communication.TeamTaskerServiceReference
{
    public partial class Team
    {
        public Team()
        {
            Members = new List<TeamMember>();
        }
    }

    public partial class TeamMember
    {
        public TeamMember()
            : this(0, 0, false)
        {
        }

        public TeamMember(long userID, bool isOwner)
            : this(0, userID, isOwner)
        {
        }

        public TeamMember(long teamID, long userID, bool isOwner)
        {
            TeamID = teamID;
            UserID = userID;
            IsOwner = isOwner;
        }
    }

    public partial class Task
    {
        public Task()
        {
            History = new List<TaskHistoryEntry>();
            WorkLog = new List<TaskWorkLogEntry>();
            Predecessors = new Dictionary<long, string>();
        }
    }
}
